﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmPronosticoImportacionNuevo.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmpronosticoImportacionNuevo" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTimer" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallback" TagPrefix="dx" %>
<%@ Register Assembly="IdeaSparx.CoolControls.Web" Namespace="IdeaSparx.CoolControls.Web" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>


<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">




 <script type="text/javascript">
    // <![CDATA[


     function ShowCreateAccountWindow8() {
         popupmensajes.Show();


     }

     function ShowCreateAccountWindow4() {
         popuperror.Show();

       
     }


      function Redireccionar() {

          window.location.href = "FrmPronosticoImportacion.aspx?id=" +<%=ConfigurationManager.AppSettings["Negocio"] %>;
         
     }


    // ]]> 
    </script>




    













                





    <asp:Label ID="lblmej" runat="server" Text=""></asp:Label>


          <div class="main-header" style="width:100%;">
            <div class="main-titulo">Generar Pronóstico</div>
            <div class="main-opciones">
                <ul>
                    <li><asp:ImageButton ID="btnSalir" runat="server" ImageUrl="~/Images/salir.png" 
                            onclick="btnSalir_Click" Visible="False" Height="28px"/></li>
                </ul>
            </div>    
          </div>       

          <div class="content-form"> 
          <asp:UpdatePanel ID="upMsgActualizar" runat="server">
           <ContentTemplate>      
        



        <dx:ASPxPopupControl ID="popuperror" runat="server" AllowDragging="True" 
                    ClientInstanceName="popuperror" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                  Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table>
                        <tr>
                        <td colspan="3">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No se pudo generar el Pedido&nbsp;
                        
                        
                        
                        </td>
                        
                        </tr>
                        <tr>
                        <td colspan="2">
                        
                            <asp:Label ID="lblmensaje" runat="server" ForeColor="#FF3300" Font-Size="7pt"></asp:Label>
                            </td>
                        
                        </tr>
                        
                        
                            <tr>
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td>
                                    <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        Text="Aceptar" Width="10px">
                                        <ClientSideEvents Click="function(s, e) {
	popuperror.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                </td>
                            </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>


        <dx:ASPxPopupControl ID="popupmensajes" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmensajes" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
                  Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="Panelpopup" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            Pedido generado de forma satisfactoria!
                        
                        
                        
                        </td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        </td>
                        <td>
                        
                            &nbsp;</td>
                        
                        </tr>
                        
                        
                            <tr>
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                                <td>
                                    <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        Text="Aceptar" Width="10px">
                                        <ClientSideEvents Click="function(s, e) {
	popupmensajes.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>

















             <asp:UpdateProgress runat="server" id="UpdateProgress1">
             
                      
                         <ProgressTemplate>
                         <div id="blur1"></div>                         
                            <div class="verventa-overlay">
                               <div class="recventa-overlay">
                                  <table>
                                      <tr>
                                          <td><img src="Images/loading1.gif" alt="Cargando..."/> </td>
                                          <td><strong>Procesando Informacion ... Espere....</strong></td>
                                      </tr>
                                  </table>   
                               </div>
                           </div>

                         </ProgressTemplate>
                   </asp:UpdateProgress> 


               
                   
                   
            


              
             



<table cellpadding="3" cellspacing="0" class="tb-pdi-form">
             
             <tr ID="trTarjeta" runat="server">
                 <td class="tb-pdi-label" style="width: 179px;">Marca:</td>
                 <td class="tb-pdi-control">
                     <dx:ASPxComboBox ID="cboMarca" runat="server" 
                         Height="16px" IncrementalFilteringDelay="10" 
                         IncrementalFilteringMode="Contains" 
                         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue" Spacing="0" 
                         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                         <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                         </LoadingPanelImage>
                         <LoadingPanelStyle ImageSpacing="5px">
                         </LoadingPanelStyle>
                         <ButtonStyle Width="13px">
                         </ButtonStyle>
                     </dx:ASPxComboBox>
                 </td>
             </tr>
               
                 <tr>
                 <td class="tb-pdi-label" style="width: 179px">Periodo de Salidas en Dias:</td>
                     <td class="tb-pdi-control"> 
                         <asp:DropDownList ID="cboPeriodo" runat="server" Width="171px" Height="16px">
                             <asp:ListItem>60</asp:ListItem>
                             <asp:ListItem>90</asp:ListItem>
                             <asp:ListItem>180</asp:ListItem>
                             <asp:ListItem>360</asp:ListItem>
                         </asp:DropDownList>
                         &nbsp;</td>
                     
                 </tr>
             
            
                 <tr>
                 <td class="tb-pdi-label" style="width: 179px">Stock a cubrir en días:</td>
                     <td class="tb-pdi-control"> 
                         <asp:DropDownList ID="cboStockDias" runat="server" Width="171px" Height="16px">
                             <asp:ListItem>60</asp:ListItem>
                             <asp:ListItem>90</asp:ListItem>
                             <asp:ListItem>180</asp:ListItem>
                             <asp:ListItem>360</asp:ListItem>
                             <asp:ListItem>720</asp:ListItem>
                         </asp:DropDownList>
                         &nbsp;</td>
                     
                 </tr>
             
            
                 <tr>
                     <td class="tb-pdi-label" colspan="2">
                         <table style="width: 304%;">
                             <tr>
                                 <td colspan="5">
                                     Tipo de Articulos</td>
                             </tr>
                             <tr>
                                 <td style="width: 178px"><div>
                                 
                                 
                                     <asp:CheckBox ID="chkA" runat="server" Text="A" Checked="True" 
                                         oncheckedchanged="chkA_CheckedChanged" />
                                         </div>
                                         <div>
                                            <asp:CheckBox ID="ChkB" runat="server" Text="B" Checked="True" />
                                         </div>
                                 </td>                               
                                 <td style="width: 137px"><div>
                                 
                                     <asp:CheckBox ID="chkC" runat="server" Text="C" Checked="True" />
                                     
                                 </div>
                                 <div>
                                 <asp:CheckBox ID="chkSinRotacion" runat="server" Text="Sin Rotacion" 
                                         Checked="True" />
                                 </div>
                                 </td>                            
                                 <td><div>
                               
                                     <asp:CheckBox ID="chkDesContinuado" runat="server" Text="Descontinuado" 
                                         Checked="True" />
                                       </div>
                                 </td>
                             </tr>
                         </table>
                     </td>
             </tr>
             
            </table>
            <table>
                 <tr>
                 <td>
                 
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                 <td colspan="2" style="text-align: center">
                     <dx:ASPxButton ID="btngene" runat="server" Text="Generar" 
                         CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                         CssPostfix="Office2010Blue" onclick="btngene_Click" 
                         SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                         Width="100px">
                     </dx:ASPxButton>
                                       
                     </td>


                  



                     <td>
                     
                         <dx:ASPxButton ID="btnsal" runat="server" Text="Salir" 
                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                             CssPostfix="Office2010Blue" 
                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                             Width="100px" CausesValidation="False" AutoPostBack="False" 
                             onclick="btnsal_Click">
                         </dx:ASPxButton>
                     
                     </td>
               </tr>
            
            </table>
                 


                 <tr>
                 <td colspan="2" style="text-align: center">
                  
                     <br />


                      
       
  



                     </td>
               </tr>
                 
              



              






                </ContentTemplate>



</asp:UpdatePanel>
            
  </div>
</asp:Content>
